#include <stdio.h>
void Print(int line){
    for(int i = 0; i < line/2; i++){
        for(int j = 0; j < i; j++)
            printf(" ");    
        printf("*");
        for(int j = 0; j < (line/2-i-1)*2; j++)
            printf(" "); 
        if(line%2 == 1)
            printf(" ");
        printf("*");
        printf("\n");
    }
    if(line%2 == 1){
    	for(int i = 0; i < line/2; i++)
    		printf(" ");
    	printf("*");
    	printf("\n");
	}
    for(int i = 0; i < line/2; i++){
        for(int j = 0; j < line/2 - i - 1; j++)
            printf(" ");    
        printf("*");
        for(int j = 0; j < i*2; j++)
            printf(" "); 
        if(line%2 == 1)
            printf(" ");
        printf("*");
        printf("\n");
    }
    
}
int main(){
    int line = 0;
    while(scanf("%d",&line) != EOF){
         Print(line);  
    }
    return 0;
}
